Initial app structure

BugzId: 29571
diff --git a/.gitignore b/.gitignore
index 0c20ff0..321d5bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
 .eunit
 deps
+ebin
 *.o
 *.beam
 *.plt
diff --git a/src/cassim.app.src b/src/cassim.app.src
new file mode 100644
index 0000000..ad1121d
--- /dev/null
+++ b/src/cassim.app.src
@@ -0,0 +1,28 @@
+% Copyright 2014 Cloudant
+%
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+{application, cassim, [
+    {description, "Application for metadata db and auth related functions"},
+    {vsn, git},
+    {registered, []},
+    {applications, [
+        kernel,
+        stdlib,
+        config,
+        couch,
+        mem3
+    ]},
+    {mod, {cassim_app, []}},
+    {env, []}
+]}.
diff --git a/src/cassim_app.erl b/src/cassim_app.erl
new file mode 100644
index 0000000..13a4d83
--- /dev/null
+++ b/src/cassim_app.erl
@@ -0,0 +1,30 @@
+% Copyright 2014 Cloudant
+%
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+-module(cassim_app).
+
+
+-behaviour(application).
+
+
+%% Application callbacks
+-export([start/2, stop/1]).
+
+
+start(_StartType, _StartArgs) ->
+    cassim_sup:start_link().
+
+
+stop(_State) ->
+    ok.
diff --git a/src/cassim_sup.erl b/src/cassim_sup.erl
new file mode 100644
index 0000000..a34fa70
--- /dev/null
+++ b/src/cassim_sup.erl
@@ -0,0 +1,41 @@
+% Copyright 2014 Cloudant
+%
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+
+-module(cassim_sup).
+
+
+-behaviour(supervisor).
+
+
+-export([start_link/0]).
+
+-export([init/1]).
+
+
+start_link() ->
+    supervisor:start_link({local, ?MODULE}, ?MODULE, []).
+
+
+init([]) ->
+    MetadataCache = {
+        cassim_metadata_cache,
+        {cassim_metadata_cache, start_link, []},
+        permanent,
+        100,
+        worker,
+        [cassim_metadata_cache]
+    },
+    {ok, {{one_for_one, 5, 10}, [MetadataCache]}}.
+