SHINDIG-1935
Delivered For Yun Zhi Lin
Fix sizeof warnings when parsing templates with large amounts of text

git-svn-id: https://svn.apache.org/repos/asf/shindig/trunk@1553211 13f79535-47bb-0310-9956-ffa450edef68
SHINDIG-1225 Make Shindig jars available as OSGi bundles.
Set project version to 4.0.0-SNAPSHOT
An attemnt to restructure shindig dependencies a bit - starting from ehcache and cache related stuff.
Extraction of API module with following packages:
- org.apache.shindig.api.auth - SecurityToken
- org.apache.shindig.api.json - JsonSerializer
- org.apache.shindig.api.time - TimeSource
- org.apache.shindig.api.io - ResoureLoader

Update tests to mockito in few places. Some of tests are failing or have compilation issues. Remove tests jar dependencies in place of shindig-test module.
Fold server-resources and server-dependencies into server module.