Move config file into silpa application directory

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
improve modulehelper module

Use importlib module to import modules, these modules will be accessible
to applications from sys.modules so drop local caching of modules.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
Better config parsing

Derive from ConfigParser.ConfigParser our config parsing class, and
create a config variable which reads config file when module is first
imported.
Renamed modulehelper to moduleloader

Now new name reflects what module is actually doing

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
Add method invoking logic to JSON-RPC

Logic for invoking requested method on a module is added, if module
doesn't have a method by the requested name a METHOD_NOT_FOUND error is
returned to client as per JSON-RPC 2.0 specifications.

If there is error in execution of call, INTERNAL_ERROR is returned to
client as per JSON-RPC spec and message is set appropriately to reflect
what happened.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
Wrie app factory and fix http return code

introduce create_app function as factory function, and on error in
jsonrpc call return 400 error code instead of 200.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
settings file for silpa

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
Factory for SILPA app creation

app factory for SILPA creates app and registers its blueprints and sets
all settings for the app before returning it.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
Convert SILPA application into package
In app factory itself load modules needed by application
Move templates and static folders into frontend module

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>